function Map(ele){
    // 1、保存地图对象
    this.ele = ele
    // 2、记录地图相关属性
    this.width = 800
    this.height = 400
}

Map.prototype.create = function(){
    // 1、设置div宽度高度背景边框

    this.ele.style.width = this.width + 'px'
    this.ele.style.height = this.height +'px'
    this.ele.style.background = 'pink'
    this.ele.style.border = '10px solid hotpink'
    this.ele.style.position = 'relative'
}